package com.my.serviceimpl;

import com.my.bean.MenuResourse;
import com.my.bean.Role;
import com.my.bean.ZtreeBean;
import com.my.mapper.MenuResourseMapper;
import com.my.service.MenuResourseService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单资源表 服务实现类
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-26
 */
@Service
public class MenuResourseServiceImpl extends ServiceImpl<MenuResourseMapper, MenuResourse> implements MenuResourseService {

    @Override
    public List<MenuResourse> findMenuByRole(Role role) {
        return baseMapper.findMenuByRole(role);
    }

    @Override
    public List<ZtreeBean> findMenuZtree() {
        return baseMapper.findMenuZtree();
    }
}
